﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Book.aspx.cs" Inherits="Book" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
  <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" 
        RepeatColumns="4" >
        <ItemTemplate>
            <asp:Panel ID="Panel1" runat="server" GroupingText='<%# Eval("Title") %>' Width="200">
             <a href='book/<%# Eval("filename") %>' target="_blank" title="">
<%# Eval("Description")%></a><br />
            </asp:Panel>
        </ItemTemplate>
    </asp:DataList>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Book] WHERE [Status]=1"></asp:SqlDataSource>
</asp:Content>

